﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lab1_Mochulskiy_.Occurances
{
    public class TruckPattern : OccurancePatternBase
    {
        private const int _minWeight = 7000;
        private const int _maxWeight = 20000;
        private const int _maxSpeed = 120;
        private const int _wheelsCount = 6;

        public override int MinWeight
        {
            get { return _minWeight; }
        }

        public override int MaxWeight
        {
            get { return _maxWeight; }
        }

        public override int MaxSpeed
        {
            get { return _maxSpeed; }
        }

        public override int WheelsCount
        {
            get { return _wheelsCount; }
        }

        protected override bool IsWheelsCountMatch(Criteria critria)
        {
            if (critria.WheelCount >= WheelsCount)
                return true;

            return false;
        }

        public override string Name
        {
            get { return "Truck"; }
        }
    }
}
